package com.fan.common.service;

import java.util.List;

import org.springframework.aop.framework.ProxyFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONObject;
import com.fan.common.dao.UserDao;
import com.fan.common.entity.UserEO;
import com.fan.common.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserDao userDao;
	@Override
	public void save(UserEO userEO) {
		List<UserEO> userEOs = userDao.findAll();
		System.out.println(JSONObject.toJSON(userEOs));
	}
	@Override
	public UserEO findById(String id) {
		return userDao.findById(id);
	}

}
